﻿using MediatR.Core.Notification;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediatR.Core.NotificationHandler
{
    public class MyNotificationHandler : INotificationHandler<MyNotification>
    {
        public Task Handle(MyNotification notification, CancellationToken cancellationToken)
        {
            // 处理通知的逻辑
            Console.WriteLine($"Notification received: {notification.Message}");
            return Task.CompletedTask;
        }
    }

}
